package com.example.demo.service.impl;

import com.example.demo.mapper.UserAuthorityMapper;
import com.example.demo.service.UserAuthorityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class UserAuthorityServiceimpl implements UserAuthorityService {

    @Autowired
    UserAuthorityMapper userAuthorityMapper;


    @Override
    public int insertUserAuthority(Integer uId, Integer aId) {
        return userAuthorityMapper.insertUserAuthority(uId, aId);
    }

    @Override
    public Integer getUserAuthorityIdById(Integer id) {
        return userAuthorityMapper.getUserAuthorityIdById(id);
    }

    @Override
    public int updateUserAuthorityById(Integer aId, Integer id) {
        return userAuthorityMapper.updateUserAuthorityById(aId, id);
    }

    @Override
    public int deleteUserAuthorityById(Integer id) {
        return userAuthorityMapper.deleteUserAuthorityById(id);
    }
}
